<template>
	<view>
		<u-tabs style="background-color: #FFFFFF;" :list="list1" :scrollable='false' :inactiveStyle="{
			color: '#999999'}" 
			:activeStyle="{
				color: '#333333',
				fontWeight: 'bold'
		}" lineColor="#9999FF" lineWidth="18" lineHeight="4" @click="click"></u-tabs>
		<scroll-view scroll-y="true" >
			<view :style="'height:'+scrollheight+ 'px;padding-bottom:20rpx;'">
				<view class="orderlist" v-for="(item,index) in 8" :key="index">
					<view class="orderlist_top flex-between">
						<view class="left flex">
							<view class="buy">购买 <span>火豆</span></view>
							<!-- <view class="sell">购买 <span>火豆</span></view> -->
							<view class="state">已完成</view>
							<!-- <view class="state1">已支付</view>
							<view class="state2">待支付</view>
							<view class="state2">待收款</view> -->
						</view>
						<view class="right">2024-10-10  20:00:06</view>
					</view>
					<view class="orderline"></view>
					<view class="ordermain">
						<view class="ordermoney"><span>￥</span>2,000.12</view>
						<view class="ordernum"><span>数量</span>2,000.12 火豆</view>
						<view class="ordernum"><span>单价</span>￥1.00</view>
						<view class="orderbottom flex-between">
							<view class="orderbottom_left flex">
								<image src="../../static/wallet/Alipay.png" mode=""></image>
								<view class="">支付宝</view>
							</view>
							<view class="orderbottom_right">查看</view>
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list1:[
					{name:'全部',id:0},
					{name:'待支付',id:0},
					{name:'已支付',id:0},
					{name:'待收款',id:0},
					{name:'已完成',id:0}
				],
				scrollheight:0
			}
		},
		onShow() {
			this.scrollheight=uni.getWindowInfo().windowHeight-60
		},
		methods: {
			click(){
				
			}
		}
	}
</script>

<style lang="scss">
.orderlist{
	width: 690rpx;
	// height: 307rpx;
	background: #FFFFFF;
	border-radius: 24rpx;
	box-sizing: border-box;
	margin: 30rpx auto;
	.orderline{
		width: 690rpx;
		height: 1rpx;
		background: #EAEAEA;
	}
	&_top{
		padding: 20rpx;
		font-weight: 600;
		font-size: 24rpx;
		.buy{
			color: #40C857;
		}
		.sell{
			color: #FF972E;
		}
		span{
			color: #333333;
		}
		.state{
			width: 74rpx;
			height: 28rpx;
			// line-height: 28rpx;
			text-align: center;
			background: #EAEAEA;
			border-radius: 4rpx;
			font-weight: 500;
			font-size: 18rpx;
			color: #CCCCCC;
			margin-left: 10rpx;
		}
		.state1{
			background: #9999FF;
			color: #FFFFFF;
		}
		.state2{
			background: #FF3B3B;
			color: #FFFFFF;
		}
		.right{
			font-weight: 400;
			font-size: 24rpx;
			color: #999999;
		}
	}
	.ordermain{
		padding: 0 20rpx 20rpx;
	}
	.ordermoney{
		font-weight: 500;
		font-size: 36rpx;
		color: #333333;
		margin-top: 20rpx;
		span{
			font-size: 24rpx;
		}
	}
	.ordernum{
		font-weight: 500;
		font-size: 24rpx;
		color: #333333;
		margin-top: 16rpx;
		span{
			color: #999999;
		}
	}
	.orderbottom{
		margin-top: 20rpx;
		&_left{
			font-weight: 500;
			font-size: 24rpx;
			color: #999999;
			image{
				width: 24rpx;
				height: 24rpx;
				margin-right: 10rpx;
			}
		}
		&_right{
			width: 160rpx;
			height: 56rpx;
			background: #9999FF;
			border-radius: 48rpx;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
			line-height: 56rpx;
			text-align: center;
		}
	}
}
</style>
